//
//  MANoteDetailHeader.h
//  meiang_edu
//
//  Created by 李国栋 on 2018/10/17.
//  Copyright © 2018年 com.meiang.meiang_edu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MANoteManageModel.h"
#import "MANoteManageModel.h"
@class MANoteDetailHeader;
@protocol MANoteDetailHeaderProtocol <NSObject>
@optional
/**
 cell长按回调
 
 @param cell MANoteDetailHeader
 */
- (void)noteDetailHeaderDidLongPress:(MANoteDetailHeader *)cell model:(id)model;

/**
 点击删除

 @param cell MANoteDetailHeader
 @param model 数据Model
 */
- (void)noteDetailHeaderDidTapDelete:(MANoteDetailHeader *)cell model:(id)model;

@end

@interface MANoteDetailHeader : UITableViewCell

/**
 cell类型 如:通知
 */
@property (weak, nonatomic) IBOutlet UILabel *lblType;

/**
 cell类型 如:通知
 */
@property (weak, nonatomic) IBOutlet UIImageView *imgType;

/**
 详情label
 */
@property (weak, nonatomic) IBOutlet UILabel *lblContent;

/**
 按钮label,通知详情统计
 */
@property (weak, nonatomic) IBOutlet UILabel *lblNoticeCount;

/**
 重复通知未读用户容器View
 */
@property (weak, nonatomic) IBOutlet UIView *viewReNotice;

@property (nonatomic ,weak) id<MANoteDetailHeaderProtocol> delegate;

//设置数据
//作为header 设置数据
- (void)setDataWithModel:(MANoteManageModel*)model;
//作为cell 设置数据
- (void)setCellDataWithModel:(MANoteManageModel*)model;
//计算高度
- (CGFloat)cellHeightWithModel:(MANoteManageModel*)model;
@end
